package cn.xm.pet.domain;

import cn.xm.basic.domain.BaseDomain;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;


/**
 * <p>
 * 
 * </p>
 *
 * @author xm
 * @since 2022-11-03
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Product extends BaseDomain {

    private static final long serialVersionUID = 1L;

    /**
     * 服务名称
     */
    private String name;
    /**
     * 存放fastdfs地址，多个资源使用，分割
     */
    private String resources;
    /**
     * 成本价
     */
    private BigDecimal costprice;
    /**
     * 售价
     */
    private BigDecimal saleprice;
    /**
     * 下架时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss",timezone = "GMT+8")
    private Date offsaletime;
    /**
     * 上架时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss",timezone = "GMT+8")
    private Date onsaletime;
    /**
     * 状态：0下架，1上架
     */
    private Integer state = 0;
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss",timezone = "GMT+8")
    private Date createtime = new Date();
    /**
     * 销售数量
     */
    private Long salecount = 0L;
    // 简介
    private String intro;
    // 预约须知
    private String orderNotice;

    private Long shopId;
    private String shopName;

//    private ProductDetail productDetail;
}
